import request from '@/utils/request'
/* 消息模版列表*/
export function getMessageList(data = {}) {
	return request({
		url: '/admin/message/lists',
		method: 'get',
		params: data
	})
}
/* 消息模版详情*/
export function getMessageInfo(data = {}) {
	return request({
		url: '/admin/message/detail',
		method: 'get',
		params: data
	})
}
/* 新增*/
export function addMessage(data = {}) {
	return request({
		url: '/admin/message/add',
		method: 'post',
		data
	})
}
/* 编辑*/
export function editMessage(data = {}) {
	return request({
		url: '/admin/message/edit',
		method: 'post',
		data
	})
}
/* 删除消息*/
export function deleteMessage(data = {}) {
	return request({
		url: '/admin/message/delete',
		method: 'post',
		data
	})
}

/* 模版参数*/
export function optionsMessage(data = {}) {
	return request({
		url: '/admin/message/options',
		method: 'get',
		params: data
	})
}

/*发送消息*/
export function sendMessage(data = {}) {
	return request({
		url: '/admin/message/send',
		method: 'post',
		data
	})
}